<%@ page import="com.huage_07.User" %>
<%@ page import="java.util.Date" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>获取值</title>
</head>
<body>

    <%
        User user = new User("张三",23,new Date());
        request.setAttribute("u",user);
    %>

    <h3>EL表达式获取值</h3><br/>
    <%--
        ${requestScope.u}
    --%>
    姓名:${requestScope.u.name}<br/>
    年龄:${u.age}<br/>
    出生日期:${u.birStr}<br/>
    ${u.birthday}<br/>
</body>
</html>
